package lac.serviceuint.cfg.model;

import java.util.List;

import lac.model.core.cfg.BasicProperty;
import lac.model.core.cfg.CollectionProperty;
import lac.model.core.cfg.EntityProperty;
import lac.model.core.cfg.IdProperty;
import lac.model.core.cfg.ModelDescribe;
import lac.model.core.cfg.Type;


public class MethodModelDescribe extends ModelDescribe{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6392225874462308216L;
	
	public MethodModelDescribe() {
		this.setName("ServiceUnitMethod");
		this.setTableName("pt_serviceunit_method");
		this.setIdProperty(new IdProperty());
		List<BasicProperty> basicProperties = this.getBasicProperties();
		basicProperties.add(new BasicProperty(Type.String, "name", "st_name", 50));
		/*basicProperties.add(new BasicProperty(Type.String, "signatureJavaClass", "stSignatureJavaClass", "100"));*/
		basicProperties.add(new BasicProperty(Type.String, "describe", "st_describe", 100));
		basicProperties.add(new BasicProperty(Type.Boolean, "register", "bo_register"));
		basicProperties.add(new BasicProperty(Type.String, "registGroup", "st_registGroup",50));
		
		List<EntityProperty> entityPropertys = this.getEntityProperties();
		entityPropertys.add(new EntityProperty("serviceUnit", "st_serviceUnit_id", "ServiceUnit"));
		
		List<CollectionProperty> collectionProperties = this.getCollectionProperties();
		collectionProperties.add(new CollectionProperty("params", "st_method_id", "ServiceUnitMethodParam"));
		collectionProperties.add(new CollectionProperty("logics", "st_method_id", "ServiceUnitMethodLogic"));
	}

}
